package eip.chapter9.splitaggregate;

import java.io.Serializable;

public class AggregatedResponse implements Serializable {

	private static final long serialVersionUID = -7407530022029585746L;
	
	private String id;
	private HotelInfo hotelInfo;
	private ReservationInfo reservationInfo;
	private UserInfo userInfo;
	
	public HotelInfo getHotelInfo() {
		return hotelInfo;
	}
	public void setHotelInfo(HotelInfo hotelInfo) {
		this.hotelInfo = hotelInfo;
	}
	public ReservationInfo getReservationInfo() {
		return reservationInfo;
	}
	public void setReservationInfo(ReservationInfo reservationInfo) {
		this.reservationInfo = reservationInfo;
	}
	public UserInfo getUserInfo() {
		return userInfo;
	}
	public void setUserInfo(UserInfo userInfo) {
		this.userInfo = userInfo;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	
	/**
	 * toString method: creates a String representation of the object
	 * @return the String representation
	 * @author e.sale
	 */
	public String toString() {
		StringBuffer buffer = new StringBuffer();
		buffer.append("AggregatedResponse[");
		buffer.append("hotelInfo = ").append(hotelInfo);
		buffer.append(", id = ").append(id);
		buffer.append(", reservationInfo = ").append(reservationInfo);
		buffer.append(", userInfo = ").append(userInfo);
		buffer.append("]");
		return buffer.toString();
	}

}
